<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  background-color: #f5f5f5;
}

#app {
  height: 100vh;
  overflow: hidden;
}

/* Element UI 样式覆盖 */
.el-button {
  border-radius: 4px;
}

.el-button--small {
  padding: 7px 15px;
  font-size: 12px;
}

.el-button-group .el-button {
  margin: 0;
}

/* 滚动条全局样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 工具提示样式 */
.el-tooltip__popper {
  max-width: 300px;
}

/* 消息提示样式 */
.el-message {
  min-width: 300px;
}

/* 确认对话框样式 */
.el-message-box {
  border-radius: 8px;
}

/* 禁用文本选择 */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 拖拽相关样式 */
.dragging {
  opacity: 0.7;
  transform: rotate(5deg);
  transition: all 0.2s ease;
}

.drag-over {
  background-color: rgba(64, 158, 255, 0.1);
  border: 2px dashed #409eff;
}

/* 动画效果 */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s;
}

.fade-enter, .fade-leave-to {
  opacity: 0;
}

.slide-enter-active, .slide-leave-active {
  transition: transform 0.3s ease;
}

.slide-enter, .slide-leave-to {
  transform: translateX(-100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .el-button--small {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .el-button-group .el-button {
    margin: 0 1px;
  }
}
</style>